import {LAYOUT } from '../consts'

const menus: any[] = [{
  name: 'device:monitor',
  path: '/device/Monitor',
  meta: {
      title: '设备监控',
      icon: 'FundProjectionScreenOutlined',
      hideChildrenInMenu: true,
      orderNo: 3,
      //affix: true,
      component: 'LAYOUT',
      isSync: false,
      perm: 'device:monitor'
  },
  redirect: '/deviceMonitor/index',
  component: LAYOUT,
  children: [
    {
        path: '/deviceMonitor/index',
        name: 'device:monitor',
        meta: {
            title: '设备监控',
            orderNo: 1,
            icon: 'AreaChartOutlined',
            perm: 'device:monitor',
            affix: false
        },
        component: () =>{
            return import('/@/views/deviceMonitor/index.vue')
        }
    },
    {
        path: '/deviceMonitor/oilPipe',
        name: 'device:monitor:oilPipe',
        meta: {
            title: '注油点列表',
            orderNo: 2,
            icon: 'AreaChartOutlined',
            perm: 'device:monitor',
            affix: false
        },
        component: () =>{
            return import('/@/views/deviceMonitor/oilPipe.vue')
        }
    },

]
}]
export default menus